﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class Schedule : BusinessObjectBase
	{
        private TimeSpan _timeFrom;
        private TimeSpan _timeTo;
		private string _days;
		
		public Schedule()
		{

		}

        public Schedule(int id, bool isDeleted, TimeSpan timeFrom, TimeSpan timeTo, string days)
            : base(id, isDeleted)
        {
            _timeFrom = timeFrom;
            _timeTo = timeTo;
            _days = days;
        }

        public Schedule(TimeSpan timeFrom, TimeSpan timeTo, string days)
        {
            _timeFrom = timeFrom;
            _timeTo = timeTo;
            _days = days;
        }

        public TimeSpan TimeFrom
		{
			get
			{
				return this._timeFrom;
			}
			set
			{
				if ((this._timeFrom != value))
				{
					this._timeFrom = value;
				}
			}
		}

        public TimeSpan TimeTo
        {
            get
            {
                return this._timeTo;
            }
            set
            {
                if ((this._timeTo != value))
                {
                    this._timeTo = value;
                }
            }
        }
		
		public string Days
		{
			get
			{
				return this._days;
			}
			set
			{
				if ((this._days != value))
				{
					
					this._days = value;
					
				}
			}
		}

        public override string ToString()
        {
            return Days + ", " + TimeFrom.Hours + "." + TimeFrom.Minutes + ":" + TimeTo.Hours + "." + TimeTo.Minutes;
        }
		
		
	}
	
}
